﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

using PermDoc.DB;

namespace PermDoc.Ctrl.Docs
{

    public class FilesTopic
    {

        #region Members
        public string FileName { get; set; }
        public String AuthorName { get; set; }
        public int AuthorID { get; set; }
        public string AuthorLoginName { get; set; }
        public string url { get; set; }
        public string ServerRelativeUrl { get; set; }
        public DateTime? FileTimeCreated { get; set; }
        public DateTime? FileTimeLastModified { get; set; }
        public bool FileRequiresCheckout { get; set; }
        public int FileModifiedByID { get; set; }
        public string FileModifiedByLoginName { get; set; }
        public string FileModifiedByName { get; set; }
        public string FileIconUrl { get; set; }
        public string FileCheckInComment { get; set; }
        public long FileLength { get; set; }
        #endregion

        #region Constructors
        public FilesTopic()
        {
        }
        public FilesTopic(FilesTopic src)
            : this()
        {
            this.Copy(src);
        }
        #endregion

        #region Methods
        public void Copy(FilesTopic src)
        {
            AuthorName = src.AuthorName;
            AuthorID = src.AuthorID;
            AuthorLoginName = src.AuthorLoginName;
            FileName = src.FileName;
            url = src.url;
            ServerRelativeUrl = src.ServerRelativeUrl;
            FileTimeCreated = src.FileTimeCreated;
            FileTimeLastModified = src.FileTimeLastModified;
            FileRequiresCheckout = src.FileRequiresCheckout;
            FileModifiedByID = src.FileModifiedByID;
            FileModifiedByLoginName = src.FileModifiedByLoginName;
            FileModifiedByName = src.FileModifiedByName;
            FileIconUrl = src.FileIconUrl;
            FileCheckInComment = src.FileCheckInComment;
            FileLength = src.FileLength;
        }
        #endregion

    }

}
